﻿using Future.Shared.Core.Const;
using Future.Shared.Core.Options;
using Microsoft.Extensions.DependencyInjection;

namespace Future.Shared.Core.Registrar;

/// <summary>
///  Author: Riva
///  Date: 2023/7/11 17:21 
///  Description: 注册配置类到IOC容器
/// </summary>

public partial class AbstractApiDependencyRegistrar
{
    /// <summary>
    ///     注册配置类到IOC容器
    /// </summary>
    protected virtual void AddConfigure()
    {
        Services
            .Configure<DbConnectionsOption>(Configuration.GetSection(NodeConsts.DbConnections))
            ;
    }
}